import styled from "styled-components";

export const IndexWrapper = styled.div/*css*/ `
  margin: 20px;

  .arco-row-align-start {
    // align-items: stretch; // 让行内列等高
    align-items: center;
  }
  .headerWrapper {
    margin-bottom: 16px;
  }
  .headerLeft {
    display: flex;
    .avatarImg {
      width: 70px;
      height: 70px;
      user-select: none;
      img {
        width: 70px;
        height: 70px;
      }
    }
    .headerLeftContent {
      margin-left: 15px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      .headerLeftItem:first-child {
        margin-bottom: 10px;
      }
    }
  }

  .headerRight {
    display: flex;
    justify-content: space-around;
    align-items: center;

    .showData {
      width: calc(33.333%);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0 5px;
      flex: 1;
    }
    .dataItem {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
    }
  }
  .headerRight .label {
    font-size: 14px;
    color: #666; /* 标签文字颜色 */
  }
  .headerRight .data {
    font-size: 20px;
    font-weight: 700;
    color: #6b7785; /* 数据文字颜色 */
  }

  .headerRight .showData:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 40px; /* 缩短分隔线高度 */
    background-color: #e0e0e0;
    content: "";
    opacity: 0.9; /* 半透明效果 */
  }

  .contentLeftWrapper,
  .contentRightWrapper {
    margin: 10px 10px 10px 0;
  }
  .arco-card-size-default .arco-card-body {
    padding: 0;
  }
  .contentLeftBody {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin: 0px;
  }
  .contentLeftBodyItem {
    width: calc(33.333%);
    border: 1px solid #e8e8e8;
    padding: 16px;
    transition: all 0.3s;
    p {
      margin: 10px 0 10px 0;
      font-size: 12px;
    }
    a {
      list-style: none;
      text-decoration: none;
      color: #6b7785;
    }
  }
  .contentLeftBodyItem:hover {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5px);
    z-index: 1;
  }
  .contentLeftBodyItem:nth-child(3n) {
    margin-right: 0;
  }
  .card-meta {
    display: flex;
    img {
      width: 23px;
      height: 23px;
      object-fit: cover;
      border-radius: 50%;
    }
    span {
      margin-left: 5px;
      font-size: 15px;
      font-weight: 600;
    }
  }

  .contentRightWrapper {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    // flex: 1;
    height: 100%;
    width: 100%;

    .firstMain {
      width: 400px;
      height: 300px;
      overflow: hidden;

      .arco-card-body {
        padding: 0;
        height: 100%;
        position: relative;
      }
    }
    .secondMain {
      width: 400px;
      height: 350px;
      overflow: hidden;
      .arco-card-body {
        padding: 0;
        height: 100%;
        position: relative;
      }
    }
  }

  .commentWrapper {
    margin: 10px 8px 10px 0;
  }

  .arco-comment-content {
    color: var(--color-text-2);
  }
`;
